<%--
    Document   : examscan
    Created on : 2012-3-28, 10:26:41
    Author     : xiaoxiao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="s"  uri="/struts-tags"%>
<style type="text/css">
    p {font: bold 15px 宋体;}
    div{font-family: 宋体;font-size: 15px}
</style>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>试卷浏览</title>
    </head>
    <body>
        <%

                    response.setContentType("application/doc");
                    response.setHeader("Content-Disposition", "inline; filename=test.doc");
        %>
        <center><b><h2><s:property value="%{exam.name}"></s:property></h2></b></center>
        <%  out.println("<br>");%>
        <% int i = 0;%>
        <p>
            <b>一、单选题 </b>
        </p>
        <div>
            <s:iterator value="danxuan" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property> ( <%  out.print("&nbsp;&nbsp;");%>    )
                <%  out.println("<br>");%>
                A.<s:property value="a"></s:property>
                <%  out.println("<br>");%>
                B.<s:property value="b"></s:property>
                <%  out.println("<br>");%>
                C.<s:property value="c"></s:property>
                <%  out.println("<br>");%>
                D.<s:property value="d"></s:property>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
            </s:iterator>
        </div>
        <p>
            <b>二、多选题</b>
        </p>
        <%  i = 0;%>
        <div>
            <s:iterator value="duoxuan" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property> ( <%  out.print("&nbsp;&nbsp;");%>    )
                <%  out.println("<br>");%>
                A.<s:property value="a"></s:property>
                <%  out.println("<br>");%>
                B.<s:property value="b"></s:property>
                <%  out.println("<br>");%>
                C.<s:property value="c"></s:property>
                <%  out.println("<br>");%>
                D.<s:property value="d"></s:property>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
            </s:iterator>
        </div>
        <p>
            <b>三、判断题</b>
        </p>
        <% i = 0;%>
        <div>
            <s:iterator value="judge" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property> (  <%  out.print("&nbsp;&nbsp;");%>    )
                <%  out.println("<br>");%>
            </s:iterator>
        </div>
        <p>
            <b> 四、主观题</b>
        </p>
        <% i = 0;%>
        <div>
            <s:iterator value="question" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
            </s:iterator>
        </div>
    </body>
</html>
